package com.woniuxy.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 订单主表(ShopOrder)实体类
 *
 * @author makejava
 * @since 2025-07-14 14:43:16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ShopOrder  {
    /**
     * 订单ID
     */
    private Integer id;
    /**
     * 订单编号
     */
    private String orderNumber;
    /**
     * 买家ID
     */
    private Integer userId;
    /**
     * 卖家ID
     */
    private Integer sellerId;
    /**
     * 商品ID
     */
    private Integer itemId;
    /**
     * 订单总金额
     */
    private BigDecimal totalAmount;
    /**
     * 优惠券ID
     */
    private Integer couponId;
    /**
     * 优惠金额
     */
    private BigDecimal couponAmount;
    /**
     * 快递方式
     */
    private Integer shippingMethod;
    /**
     * 支付方式(1-微信,2-支付宝,3-钱包)
     */
    private Integer paymentMethod;
    /**
     * 订单状态(1-待支付,2-已支付,3-已发货,4-已完成,5-已取消)
     */
    private Integer status;
    /**
     * 订单过期时间
     */
    private LocalDateTime expireTime;

    private String runNumber;
    /**
     * 支付时间
     */
    @Getter
    private Date paymentTime;
    /**
     * 创建时间
     */
    @Getter
    private Date createTime;
    /**
     * 更新时间
     */
    @Getter
    private Date updateTime;
    @Getter
    private String address;

}

